net/netip.Prefix.ip (field)
21 uses
net/netip (current package)
netip.go#L1289: ip Addr
netip.go#L1310: ip: ip.withoutZone(),
netip.go#L1316: func (p Prefix) Addr() Addr { return p.ip }
netip.go#L1331: func (p Prefix) IsSingleIP() bool { return p.IsValid() && p.Bits() == p.ip.BitLen() }
netip.go#L1417: m, _ := p.ip.Prefix(p.Bits())
netip.go#L1432: if f1, f2 := p.ip.BitLen(), ip.BitLen(); f1 == 0 || f2 == 0 || f1 != f2 {
netip.go#L1444: return uint32((ip.addr.lo^p.ip.addr.lo)>>((32-p.Bits())&63)) == 0
netip.go#L1449: return ip.addr.xor(p.ip.addr).and(mask6(p.Bits())).isZero()
netip.go#L1465: if p.ip.Is4() != o.ip.Is4() {
netip.go#L1482: if p, err = p.ip.Prefix(minBits); err != nil {
netip.go#L1485: if o, err = o.ip.Prefix(minBits); err != nil {
netip.go#L1488: return p.ip == o.ip
netip.go#L1503: if p.ip.z == z4 {
netip.go#L1504: b = p.ip.appendTo4(b)
netip.go#L1506: if p.ip.Is4In6() {
netip.go#L1508: b = p.ip.Unmap().appendTo4(b)
netip.go#L1510: b = p.ip.appendTo6(b)
netip.go#L1530: switch p.ip.z {
netip.go#L1594: return p.ip.String() + "/" + itoa.Itoa(p.Bits())
The pages are generated with Golds v0.7.6. (GOOS=linux GOARCH=amd64)